import request from "@/utils/request.js";

export function getListData(id) {
    return request({
        url: "/cet4/list/" + id,
        method: "get",
    })
}

export function getGroupData(id) {
    return request({
        url: "/cet4/group?group=" + id,
        method: "get",
    })
}

export function getGroupDataParam(id) {
    return request({
        url: "/cet4/group",
        method: "get",
        params: id
    })
}

export function getGroupDataOneMeaning(params) {
    return request({
        url: "/cet4/groupData",
        method: "get",
        params: params
    })
}

export function getGroupAnotherData(params) {
    return request({
        url: "/cet4/groupNotData",
        method: "get",
        params: params
    })
}

export function getPracticeList(id) {
    return request({
        url: "/cet4/practice?practice=" + id,
        method: "get",
    })
}

export function getPracticeListParam(practice) {
    return request({
        url: "/cet4/practice",
        method: "get",
        params: practice
    })
}

export function putStudyData(params) {
    return request({
        url: "/cet4/data",
        method: "post",
        data: params
    })
}

export function putStudyList(params) {
    return request({
        url: "/cet4/dataList",
        method: "post",
        data: params
    })
}

export function putTestList(params) {
    return request({
        url: "/cet4/dataTestList",
        method: "post",
        data: params
    })
}